﻿<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <TargetFramework>net461</TargetFramework>
    <OutputType>Exe</OutputType>
    <GenerateAssemblyInfo>false</GenerateAssemblyInfo>
    <AssemblyName>Apache.Ignite</AssemblyName>
    <RootNamespace>Apache.Ignite</RootNamespace>
    <SignAssembly>true</SignAssembly>
    <AssemblyOriginatorKeyFile>Apache.Ignite.snk</AssemblyOriginatorKeyFile>
    <IsPackable>false</IsPackable>
    <IsPublishable>true</IsPublishable>
    <PackageId>Apache.Ignite.Executable</PackageId>

    <CodeAnalysisRuleSet>..\Apache.Ignite.ruleset</CodeAnalysisRuleSet>
  </PropertyGroup>

  <ItemGroup>
    <Reference Include="System.Configuration" />
    <Reference Include="System.Configuration.Install" />
    <Reference Include="System.Core" />
    <Reference Include="System.ServiceProcess" />
  </ItemGroup>

  <ItemGroup>
    <ProjectReference Include="..\Apache.Ignite.Core\Apache.Ignite.Core.csproj" />

    <!--
    NOTE: Microsoft.CodeAnalysis.NetAnalyzers is the new replacement for FxCopAnalyzers,
    but it has some issues on older SDKs (https://github.com/dotnet/roslyn-analyzers/issues/4776).
    NOTE: Don't upgrade to 3.x - it does not work on some older 2.x SDKs
    -->
    <PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.9.12" PrivateAssets="all" />
  </ItemGroup>

  <ItemGroup>
    <Compile Remove="Service\IgniteService.DotNetCore.cs" />
    <Compile Include="..\SharedAssemblyInfo.cs" />
  </ItemGroup>

</Project>
